package cn.diancan.util;

public enum FileType {
    
    JPEG("jpg",1,"FFD8FF"),
    
    PNG("png", 1,"89504E47"),
    
    GIF("gif",1,"47494638"),
    
    BMP("bmp",1,"424D");
    
    private String type;
    private Integer fileCategory; //
    private String magicNumber;
    
     
    private FileType(String type,Integer fileCategory,String magicNumber){
	this.type =type;
	this.fileCategory =fileCategory;
	this.magicNumber =magicNumber;
    }

    public String getType() {
        return type;
    }

    public Integer getFileCategory() {
        return fileCategory;
    }

    public String getMagicNumber() {
        return magicNumber;
    }
    
    
    
    
    

}
